package indi.yuluo.dao;

import indi.yuluo.entity.user.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: yuluo
 * @CreateTime: 2022-07-19  18:50
 * @Description: TODO
 */

@Mapper
public interface UserMapper {

    UserInfo getUserByUsername(String username);

    void saveUser(UserInfo userInfo);

    void saveUserAvatarAddress(
                @Param("username") String username,
                @Param("filename") String fileName);

    int updateUserInfo(UserInfo userInfo);

    UserInfo getUserById(Long uid);
}
